package org.kamionowski.supreme.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by IntelliJ IDEA.
 * User: Marcin Kamionowski
 * Date: 23.03.11
 * Time: 00:19
 */
@Controller
public class ErrorController {

    @RequestMapping("/error/notFound.html")
    public ModelAndView notFound() {
        ModelAndView mav = new ModelAndView("404");
        return mav;
    }

    @RequestMapping("/error/exception.html")
    public ModelAndView exception() {
        ModelAndView mav = new ModelAndView("500");
        return mav;
    }
}
